package com.sfac.hqyj.springBoot.modules.account.service;

import java.util.List;

import com.github.pagehelper.PageInfo;
import com.sfac.hqyj.springBoot.modules.account.entity.Resource;
import com.sfac.hqyj.springBoot.modules.common.entity.ResultEntity;
import com.sfac.hqyj.springBoot.modules.common.entity.SearchBean;


public interface ResourceService {
	ResultEntity<Resource> insertResource(Resource resource);

	ResultEntity<Resource> updateResource(Resource resource);

	ResultEntity<Object> deleteResourceById(int id);

	Resource getResourceById(int id);

	List<Resource> getResourcesByRoleId(int roleId);

	PageInfo<Resource> getResourcesBySearchBean(SearchBean searchBean);
}
